home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / OSP5000.M3 < prev    next >
Encoding:
Text File  |  1996-04-01  |  4.2 KB  |  154 lines

  1. name Okuma OSP5000
  2.  
  3. % 00
  4. O >4
  5. N >4
  6. n 4
  7. G 2
  8. X ->3.>4
  9. Y ->3.>4
  10. Z ->3.>4
  11. I ->3.>4
  12. J ->3.>4
  13. Q ->3.>4
  14. R ->3.>4
  15. P ->3.>4
  16. F >3.2
  17. K ->3.>4
  18. d ->3.>4
  19. H 2
  20. D 2
  21. T 2
  22. M 2
  23. S 4
  24. ) 00
  25.  
  26. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  27.  
  28. ModalLetters X Y Z R F                # List of letters that are modal    
  29.  
  30. Sequence#s N 1 10 10                  # Char, freq, incr & start          
  31. Spaces? Y                             # Y or N  'Spaces between words     
  32. First#? N                             # Y or N  'Output 1st sequence no.  
  33. Last#? N                              # Y or N  'Output last sequence no. 
  34.  
  35. HCode X                               # X or X U  'Horizontal char.       
  36. VCode Y                               # Y or Y V  'Vertical char.         
  37. DCode Z                               # Depth char.                       
  38. FeedCode F                            # Feed rate char.                   
  39.  
  40. Comment ( )                           # Begin End comment char.           
  41.  
  42. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  43. Coolant 8 9 7                         # On, Off & Mist m codes            
  44. DComp 41 42 40                        # Left, Right & Cancel m codes      
  45. LComp 43 49                           # On & Off codes                    
  46.  
  47. Feed G1                             # Linear move                       
  48. Rapid G0                            # Rapid positioning word            
  49.  
  50. Cw G2                               # Circular move clockwise           
  51. Ccw G3                              # Circular move counter clockwise   
  52. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  53. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  54.  
  55. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  56.  
  57. CtrCode I J                           # I J or R or I J K L               
  58. Helical? N
  59.  
  60. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  61.  
  62. WorkDefault 1                         # Work offset register default      
  63.  
  64.  
  65. Drill                                 # Drilling canned/manual cycle      
  66. G71 Z[RPlane]
  67. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  68. end cancel
  69.  
  70. Peck                                  # Pecking canned/manual cycle       
  71. G71 Z[RPlane]
  72. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate] M53
  73. end cancel
  74.  
  75. Tap                                   # Tapping canned/manual cycle       
  76. G71 Z[RPlane]
  77. G84 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  78. end cancel
  79.  
  80. LTap                                  # Left handed tapping cycle         
  81. G71 Z[RPlane]
  82. G74 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  83. end cancel
  84.  
  85. Ream                                  # Reaming canned/manual cycle       
  86. G71 Z[RPlane]
  87. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  88. end cancel
  89.  
  90. Bore                                  # Boring canned/manual cycle        
  91. G71 Z[RPlane]
  92. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  93. end cancel
  94.  
  95. Back                                  # Back boring canned/manual cycle   
  96. G71 Z[RPlane]
  97. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate] M53
  98. end cancel
  99.  
  100. Cancel                                # Cancel a canned/manual cycle      
  101. G80
  102. end
  103.  
  104. StartCode                             # Start of the program              
  105. %0
  106. n9999
  107. G15 H[Work]
  108. End
  109.  
  110. 1stToolChange                         # First tool change                 
  111. d[Tool] )0
  112. T[Tool]
  113. M6
  114. T[NextTool]
  115. M[Direct] S[Speed]
  116. G0 G90 X[H] Y[V]
  117. G56 Z[D] H[LComp]
  118. M[Cool]
  119. End
  120.  
  121. Infeed                                # Enable cutter comp                
  122. G1 Z[D] F[Plunge]
  123. G[Side] X[H] Y[V] H[DComp] F[FRate]
  124. end
  125.  
  126. Outfeed                               # Disable cutter comp               
  127. G1 G40 X[H] Y[V]
  128. Z[D]
  129. end
  130.  
  131. ToolChange                            # Secondary tool changes            
  132. G0 Z[D] M9
  133. O9999 M01
  134. d[Tool] )0
  135. M6
  136. T[NextTool]
  137. M[Direct] S[Speed]
  138. G0 G90 X[H] Y[V]
  139. G56 Z[D] H[Lcomp]
  140. M[Cool]
  141. End
  142.  
  143. EndCode                               # End of the program                
  144. G80 G90 Z8.0
  145. G90 X0 Y15.0
  146. M6
  147. M30
  148. %0
  149. End
  150.  
  151. Replace "O9999" with "NRST"
  152. Replace "n9999" with "( Okuma OSP5000 - Machine# 0109 )"
  153. Replace "d" with "(      Tool No.  "
  154.